import { Girl } from "./Girl";
import { Comparable } from "./interfaces/Comparable";
import { HeapComparable } from "./interfaces/HeapComparable";

class Gongnv implements HeapComparable<Gongnv>{
    girl: Girl
    x_px: string
    y_px: string
    constructor(girl: Girl, x_px: string, y_px: string) {
        this.girl = girl;
        this.x_px = x_px;
        this.y_px = y_px;
    }
    getXPx(): string {
        return this.x_px;
    }
    getYPx(): string {
        return this.y_px;
    }
    setXPx(x_px: string): void {
        this.x_px = x_px;
    }
    setYPx(y_px: string): void {
        this.y_px = y_px;
    }
    compare(other: Gongnv): boolean {
        return this.girl.score > other.girl.score;
    }
}

export { Gongnv }